package blog.entity;

public class Tag {
	//标签id
	private Integer tagId;
	//标签名称
	private String tagName;
	//标签描述
	private String tagDescription;
	//非数据库中属性，记录每个标签有多少文章
	private Integer articleCount;
	
	public Tag() {
		
	}
	public Tag(int tagId) {
		this.tagId = tagId;
	}
	public Integer getTagId() {
		return tagId;
	}
	public void setTagId(Integer tagId) {
		this.tagId = tagId;
	}
	public String getTagName() {
		return tagName;
	}
	public void setTagName(String tagName) {
		this.tagName = tagName;
	}
	public String getTagDescription() {
		return tagDescription;
	}
	public void setTagDescription(String tagDescription) {
		this.tagDescription = tagDescription;
	}
	public Integer getArticleCount() {
		return articleCount;
	}
	public void setArticleCount(Integer articleCount) {
		this.articleCount = articleCount;
	}
	@Override
	public String toString() {
		return "Tag [tagId=" + tagId + ", tagName=" + tagName + ", tagDescription=" + tagDescription + ", articleCount="
				+ articleCount + "]";
	}
	
}
